package com.greate.community.entity.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author xzx
 * @date 2022/3/12 15:17
 */
@Data
public class RegisterDTO {
    @NotBlank(message = "用户名不能为空")
    @Size(max = 20, message = "内容过长，用户名20字以内")
    private String username;

    @NotBlank(message = "密码不能为空")
    @Size(max = 30, message = "内容过长，密码30字以内")
    private String password;

    @NotBlank(message = "邮箱不能为空")
    @Size(max = 30, message = "内容过长，邮箱30字以内")
    private String email;
}
